/*
 * bitmaps.h
 *
 *  Created on: 30/04/2012
 *      Author: utnso
 */

#ifndef BITMAPS_H_
#define BITMAPS_H_

#include <string.h>
#include <stdio.h>

typedef struct {
unsigned int bit1 :1;
unsigned int bit2 :1;
unsigned int bit3 :1;
unsigned int bit4 :1;
unsigned int bit5 :1;
unsigned int bit6 :1;
unsigned int bit7 :1;
unsigned int bit8 :1;
} byte;

typedef struct {
byte byte1;
byte byte2;
byte byte3;
byte byte4;
} long_word;

void buscarBloquesLibresGrupo(void *address, int groupId);
void buscarInodosLibresGrupo(void *address, int groupId);
void buscarLibres(unsigned char *bitmap, int libres, int num_inicial, int size_bitmap);
int contarLibres(unsigned char *bitmap, int size_bitmap);
void mostrarLibres(int *arrayLibres,int libres);
unsigned char * readBitmap(void *address, int num_block);

#endif /* BITMAPS_H_ */
